<?php

namespace backend\models;

use Yii;

class Person extends \common\models\Person
{
    /**
     * 返回person表中的个人身份信息，用于下拉框
     * @return array|\yii\db\ActiveRecord[]
     */
    public  static function getPersonInfo(){
        return Person::find()->select(["concat(name,'(',sex,birthday,')')"])->indexBy('id')->column();
    }

    public function save($runValidation = true, $attributeNames = null)
    {
        return parent::save($runValidation, $attributeNames); // TODO: Change the autogenerated stub
    }


}